Tristan Van Berkom [Thu, 2 Dec 2010 08:10:10 +0000 (17:10 +0900)]
Changed tests/testcellarea.c (and scaffolding) to only reorient the GtkCellArea
It's a better test case if the scaffolding only displays the rows from top
to bottom and doesnt line up the cells from left to right (because it shows
that height-for-width still works with vertically oriented areas).
Tristan Van Berkom [Thu, 2 Dec 2010 08:09:44 +0000 (17:09 +0900)]
Removed unused variable from GtkCellAreaBoxContext.
Tristan Van Berkom [Thu, 2 Dec 2010 04:58:02 +0000 (13:58 +0900)]
Merge branch 'master' into treeview-refactor
Conflicts:
tests/Makefile.am
Matthias Clasen [Thu, 2 Dec 2010 04:32:35 +0000 (23:32 -0500)]
Avoid a warning when finalizing toolbars
Recent changes cause disposing menus to emit ::deactivate. So better
disconnect the deactivate handler first.
Tristan Van Berkom [Thu, 2 Dec 2010 04:19:37 +0000 (13:19 +0900)]
Fixed GtkCellAreaBoxContext for some typos introduced while removing GtkCellAreaContext->sum_preferred_width()/height() apis.
Cosimo Cecchi [Wed, 1 Dec 2010 19:18:12 +0000 (20:18 +0100)]
app-chooser-button: don't insert empty rows in the combobox
Cosimo Cecchi [Wed, 1 Dec 2010 15:33:34 +0000 (16:33 +0100)]
app-chooser-button: add a note in the docs
Cosimo Cecchi [Wed, 1 Dec 2010 13:29:57 +0000 (14:29 +0100)]
app-chooser: add docs and symbols coverage for new API
Cosimo Cecchi [Wed, 1 Dec 2010 11:12:03 +0000 (12:12 +0100)]
app-chooser-button: add gtk_app_chooser_button_set_active_custom_item()
This allows to pre-select a custom item.
Cosimo Cecchi [Wed, 1 Dec 2010 15:29:57 +0000 (16:29 +0100)]
app-chooser-button: make sure to always get a valid iter
Even in case there are no installed applications for our content type.
Bastien Nocera [Mon, 22 Nov 2010 17:46:25 +0000 (17:46 +0000)]
gtk: Allow hiding the trough/slider in GtkScale
When setting a GtkRange's upper and lower values to the same
value, the slider will not be drawn any more.
https://bugzilla.gnome.org/show_bug.cgi?id=549720
Tristan Van Berkom [Wed, 1 Dec 2010 13:42:54 +0000 (22:42 +0900)]
Added some rules to GtkCellAreaBox for rendering the last cell.
- When we reach a cell that is out of the render area, break out
of the loop (for columns user resized too small)
- CLAMP the size of the last renderer to fit into the area
(so that renderers get a chance to ellipsize when rendered
with a space less than allocation, same reason as above).
- Hand out remaining space in the render area to the last cell,
this is for shallow rows in the expand column which may recieve
more than the allocated width.
Ivar Smolin [Wed, 1 Dec 2010 11:17:39 +0000 (13:17 +0200)]
[l10n] Updated Estonian translation
Mahyar Moghimi [Wed, 1 Dec 2010 10:49:46 +0000 (14:19 +0330)]
Updating Persian translation
Mahyar Moghimi [Wed, 1 Dec 2010 10:46:19 +0000 (14:16 +0330)]
Updating Persian translation
Tristan Van Berkom [Wed, 1 Dec 2010 07:21:09 +0000 (16:21 +0900)]
Fixed GtkCellArea to always activate a cell at gtk_cell_area_activate() time even if no cells have focus.
Tristan Van Berkom [Wed, 1 Dec 2010 06:18:40 +0000 (15:18 +0900)]
Added special clause to GtkCellAreaBox focus navigation.
If the area has no activatable cells and has focus when
focus should be cycled, immediately focus out of the area
(because focus in that case is given to the entire area).
Emmanuele Bassi [Tue, 30 Nov 2010 21:54:48 +0000 (21:54 +0000)]
switch: Fix the attribution line
Thomas Wood pointed out that the original MxGtkLightSwitch widget upon
which I based the behaviour of GtkSwitch was not written by him; the
original authors are:
Joshua Lock
Robert Staudinger
Jussi Kukkonen
My apologies to all of them.
Matthias Clasen [Tue, 30 Nov 2010 03:08:09 +0000 (22:08 -0500)]
Update checkmenuitem docs slightly
Cosimo Cecchi [Tue, 30 Nov 2010 16:31:59 +0000 (17:31 +0100)]
Merge branch 'open-with-dialog'
Cosimo Cecchi [Tue, 30 Nov 2010 16:27:53 +0000 (17:27 +0100)]
app-chooser: other misc doc fixes
Cosimo Cecchi [Tue, 30 Nov 2010 15:30:33 +0000 (16:30 +0100)]
app-chooser: add more symbols & docs
Cosimo Cecchi [Tue, 30 Nov 2010 15:27:28 +0000 (16:27 +0100)]
Merge branch 'master' into open-with-dialog
Conflicts:
docs/reference/gtk/gtk3-sections.txt
gtk/gtk.symbols
Guillaume Desmottes [Tue, 30 Nov 2010 14:59:49 +0000 (15:59 +0100)]
gtkspinner: don't setup the timeout twice (#636129)
Cosimo Cecchi [Tue, 30 Nov 2010 14:04:37 +0000 (15:04 +0100)]
app-chooser-button: remove leftover typedef
Cosimo Cecchi [Tue, 30 Nov 2010 14:04:00 +0000 (15:04 +0100)]
build: order new files alphabetically
Cosimo Cecchi [Tue, 30 Nov 2010 14:03:33 +0000 (15:03 +0100)]
app-chooser: update docs
Ryan Lortie [Tue, 30 Nov 2010 05:07:08 +0000 (00:07 -0500)]
Bug 619148 - "active ID" properties (GtkComboBox)
Based on a patch by Matthias, add an "active-id" property for
GtkComboBox and add some convenience API for GtkComboBoxText.
Also, add a test case to gtk-demo.
Emmanuele Bassi [Mon, 29 Nov 2010 15:43:43 +0000 (15:43 +0000)]
a11y: Use ATK macros and clean up/2 - GtkSpinner
ATK provides macros to the same effect as G_DEFINE_TYPE; using these
macros has the advantage of removing tons of duplicated code and
reducing the maintainership burden.
The widgets with inline accessibility implementation should switch to
these macros, and clean up the code.
https://bugzilla.gnome.org/show_bug.cgi?id=636060
Emmanuele Bassi [Mon, 29 Nov 2010 15:40:29 +0000 (15:40 +0000)]
a11y: Use ATK macros and clean up/1 - GtkAssistant
ATK provides macros to the same effect as G_DEFINE_TYPE; using these
macros has the advantage of removing tons of duplicated code and
reducing the maintainership burden.
The widgets with inline accessibility implementation should switch to
these macros, and clean up the code.
https://bugzilla.gnome.org/show_bug.cgi?id=636060
Matthias Clasen [Mon, 29 Nov 2010 21:47:01 +0000 (16:47 -0500)]
Forgotten changes
Javier Jardón [Mon, 29 Nov 2010 20:49:38 +0000 (21:49 +0100)]
GtkSwitch: Add missing "Since: 3.0" tags
Javier Jardón [Mon, 29 Nov 2010 20:31:35 +0000 (21:31 +0100)]
configure: Fix typo
Andrej Žnidaršič [Mon, 29 Nov 2010 20:27:47 +0000 (21:27 +0100)]
Updated Slovenian translation
Matthias Clasen [Mon, 29 Nov 2010 19:48:24 +0000 (14:48 -0500)]
Bump version
Matthias Clasen [Mon, 29 Nov 2010 18:56:27 +0000 (13:56 -0500)]
No more rulers
Matthias Clasen [Mon, 29 Nov 2010 18:29:49 +0000 (13:29 -0500)]
Clean up POTFILES.skip as well
Matthias Clasen [Mon, 29 Nov 2010 18:04:15 +0000 (13:04 -0500)]
Update NEWS
Matthias Clasen [Mon, 29 Nov 2010 18:00:04 +0000 (13:00 -0500)]
Revert
c00b85bf3f9cb1dc77dd22f138eb53048eb355b7
This needs more work, currently we do dupe targets when copying
target entries in various places, and consequently free them
later. To do this correctly, the strings need to be interned
or something like that.
Matthias Clasen [Mon, 29 Nov 2010 17:47:44 +0000 (12:47 -0500)]
Re-add some conditionals to symbols files
We need to keep the ifdefs for platform abi differences.
Cosimo Cecchi [Mon, 29 Nov 2010 17:10:06 +0000 (18:10 +0100)]
app-chooser-online: rework of the online module
- the _get_default() method is now async
- the PackageKit module will return NULL in case PackageKit is not
available in the session bus
- the dummy module doesn't exist anymore
- the dialog won't display the online button in case there's no module
available
Matthias Clasen [Mon, 29 Nov 2010 17:04:38 +0000 (12:04 -0500)]
remove some duplicate symbols
Matthias Clasen [Mon, 29 Nov 2010 16:49:11 +0000 (11:49 -0500)]
Add gdk_device_get_n_keys to symbol list
Matthias Clasen [Mon, 29 Nov 2010 16:46:58 +0000 (11:46 -0500)]
Add GtkSwitch to POTFILES
Matthias Clasen [Mon, 29 Nov 2010 16:43:45 +0000 (11:43 -0500)]
Updates
Matthias Clasen [Mon, 29 Nov 2010 16:25:10 +0000 (11:25 -0500)]
Small doc fixup
Matthias Clasen [Mon, 29 Nov 2010 16:23:07 +0000 (11:23 -0500)]
Add GtkSwitch to the widget gallery
Matthias Clasen [Mon, 29 Nov 2010 15:14:21 +0000 (10:14 -0500)]
Add a GtkSwitch
Cosimo Cecchi [Mon, 29 Nov 2010 15:10:58 +0000 (16:10 +0100)]
app-chooser-button: tabs to spaces
Cosimo Cecchi [Mon, 29 Nov 2010 15:04:59 +0000 (16:04 +0100)]
app-chooser-button: change the API approach for custom items
Introduce a 'custom-item-activated' on the widget, which behaves
similairly to GtkEntryCompletion::action-activated, i.e. is emitted when
a custom item is chosen from the dropdown list.
Clients can use the name provided when adding the item as a detail for
the signal, to get notified when that specific item is activated, or use
the signal without details to get notifications for all custom items.
Emmanuele Bassi [Mon, 29 Nov 2010 13:43:53 +0000 (13:43 +0000)]
switch: Use ATK macros to reduce the amount of code
And the insanity.
Reviewed-by: Christian Persch <chpe@gnome.org>
Emmanuele Bassi [Mon, 29 Nov 2010 13:23:28 +0000 (13:23 +0000)]
switch: Use the right value for comparison
Emmanuele Bassi [Mon, 29 Nov 2010 00:18:56 +0000 (00:18 +0000)]
switch: Add accessibility implementation
Modelled on GailToggleButton.
https://bugzilla.gnome.org/show_bug.cgi?id=634987
Emmanuele Bassi [Sun, 28 Nov 2010 09:46:36 +0000 (09:46 +0000)]
docs: Add GtkSwitch to the API reference
https://bugzilla.gnome.org/show_bug.cgi?id=634987
Emmanuele Bassi [Fri, 26 Nov 2010 13:24:04 +0000 (13:24 +0000)]
Add GtkSwitch, a "light-switch" like widget
The GtkSwitch widget is a simple UI control that has two states: on and
off. Toggling between the states is possible by clicking the widget or
by dragging the handle.
https://bugzilla.gnome.org/show_bug.cgi?id=634987
Theppitak Karoonboonyanan [Mon, 29 Nov 2010 11:56:35 +0000 (18:56 +0700)]
Updated Thai translation.
Cosimo Cecchi [Mon, 29 Nov 2010 11:25:52 +0000 (12:25 +0100)]
app-chooser-button: include gtk-docs for show-dialog-item
Cosimo Cecchi [Mon, 29 Nov 2010 11:19:18 +0000 (12:19 +0100)]
app-chooser-button: rename GtkAppChooserComboBox -> GtkAppChooserButton
Tristan Van Berkom [Mon, 29 Nov 2010 09:04:47 +0000 (18:04 +0900)]
Make GtkTreeView tell the column about expand space instead of just assigning column->width.
Also modified the api to open up the way for treeview to tell the column
about how much of its size is really used to render the area.
Tristan Van Berkom [Mon, 29 Nov 2010 07:49:34 +0000 (16:49 +0900)]
Fix GtkCellAreaBox to not paint a focus rectangle while a cell is currently being edited.
Tristan Van Berkom [Mon, 29 Nov 2010 07:29:09 +0000 (16:29 +0900)]
Changed cell area/renderer "can_focus" semantics to "is_activatable" across the board.
This is because focus in treeviews can be given to cells that cannot do anything
with activation (for better keynav), so we dissociate the concept of cell
activation and focusing.
Tristan Van Berkom [Mon, 29 Nov 2010 07:20:01 +0000 (16:20 +0900)]
Fixed GtkCellAreaBox->focus() to not give focus to cells that are siblings of an intentional focus cell.
Tristan Van Berkom [Mon, 29 Nov 2010 07:14:46 +0000 (16:14 +0900)]
Make focus rectangle painted on all cells if the GtkCellAreaBox is requested to paint focus and none of the cells are activatable.
Tristan Van Berkom [Mon, 29 Nov 2010 07:03:53 +0000 (16:03 +0900)]
Make editable widget fill the entire inner area of the edited cell
instead of just the aligned focus area to match previous behaviour
Tristan Van Berkom [Wed, 24 Nov 2010 09:28:31 +0000 (18:28 +0900)]
Fixed GtkCellLayout to pack cells via the api when parsing builder input.
Tristan Van Berkom [Mon, 22 Nov 2010 07:27:52 +0000 (16:27 +0900)]
Allow minimal implementation of GtkCellLayout
Since GtkCellArea delegate does all the work, cell layout widgets
who use a GtkCellArea internally only have to implement the _get_area()
method, this just reduces code to forward the calls over the the internal
cell area.
Tristan Van Berkom [Mon, 29 Nov 2010 04:01:49 +0000 (13:01 +0900)]
Removed cell_layout implementation details in GtkTreeViewColumn in favor of cell_layout->get_area
Tristan Van Berkom [Mon, 29 Nov 2010 02:02:29 +0000 (11:02 +0900)]
Touching up GtkCellArea docs.
Tristan Van Berkom [Mon, 29 Nov 2010 01:54:07 +0000 (10:54 +0900)]
Added initial detailed docs for GtkCellArea.
Tristan Van Berkom [Sun, 28 Nov 2010 09:52:08 +0000 (18:52 +0900)]
Removed gtk_cell_area_context_sum_preferred_width/height apis.
Turns out theres not much reason to do this in a separate api,
now we just sum up the sizes of aligned cell groups in GtkCellAreaContextBox
when pushing the group size.
Kristian Rietveld [Sun, 28 Nov 2010 20:14:33 +0000 (21:14 +0100)]
Remove obsolete code line
Kristian Rietveld [Sun, 28 Nov 2010 20:02:36 +0000 (21:02 +0100)]
Add temporary hack to get the row heights right
Kristian Rietveld [Sun, 28 Nov 2010 19:40:59 +0000 (20:40 +0100)]
Remove unused retrieval of focus-line-width
Kristian Rietveld [Sun, 28 Nov 2010 19:39:51 +0000 (20:39 +0100)]
validate_row no longer uses focus-line-width
Emmanuele Bassi [Sun, 28 Nov 2010 18:49:47 +0000 (18:49 +0000)]
rgba: Invert the arguments and improve bindability
Since parse() is a method of the Gdk.RGBA class, the GdkRGBA pointer
should be the first argument, and the string the second one, to allow a
more natural binding.
https://bugzilla.gnome.org/show_bug.cgi?id=635879
Kristian Rietveld [Sun, 28 Nov 2010 18:01:49 +0000 (19:01 +0100)]
First go at migrating GtkTreeView(Column) to GtkCellArea
This is still very much a work in progress, but it renders and more or
less works. I will be fixing up the details in the very near future.
Important: this commit breaks ABI as it modifies the GtkTreeViewColumn
structure in gtktreeviewcolumn.h. This is a sealed structure that needs
to be moved to an internal header file, most likely gtktreeprivate.h.
Kristian Rietveld [Sun, 28 Nov 2010 17:52:18 +0000 (18:52 +0100)]
Allow non-editable cells to receive focus
Slight tweak for GtkTreeView, also non-editable cells must be able to receive
focus to get all keyboard navigation right. This will be further tweaked
to get focus siblings to work like focus cells did in GtkTreeView before
refactoring.
Kristian Rietveld [Sun, 14 Nov 2010 09:43:00 +0000 (10:43 +0100)]
Available extra space could be less than zero
The allocated size, or (horizontally speaking) for-width size, can be
smaller than the sum of all minimum widths. For example when the user
is resizing tree view columns manually.
Matthias Clasen [Sun, 28 Nov 2010 04:12:09 +0000 (23:12 -0500)]
Avoid delays in starting applications
Only query file info once, and don't do it for non-native files, since
that may cause sync network IO.
Bug http://bugzilla.gnome.org/show_bug.cgi?id=635588
Matthias Clasen [Sun, 28 Nov 2010 01:56:09 +0000 (20:56 -0500)]
Fix recursion in the GtkIconView accessible initialization
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=634474
Tristan Van Berkom [Sat, 27 Nov 2010 07:05:14 +0000 (16:05 +0900)]
Changed all the flush apis on GtkCellAreaContext for a single "reset" api.
Tristan Van Berkom [Sat, 27 Nov 2010 06:40:45 +0000 (15:40 +0900)]
Removing the height_for_width vfuncs on GtkCellAreaContextClass which I forgot to remove.
Tristan Van Berkom [Fri, 26 Nov 2010 14:41:39 +0000 (23:41 +0900)]
Fixing GtkCellAreaBox at render time to consider height-for-width when stacked vertically
Also bullet-proofing GtkCellAreaBoxContext at allocate time.
Spoiala Marian [Fri, 26 Nov 2010 14:01:41 +0000 (16:01 +0200)]
Updated Romanian translation
Lucian Adrian Grijincu [Fri, 26 Nov 2010 13:57:32 +0000 (15:57 +0200)]
Updated Romanian translation
Tristan Van Berkom [Fri, 26 Nov 2010 12:35:53 +0000 (21:35 +0900)]
Fixed CellAreaScaffold for new gtk_cell_area_context_allocate() api.
Tristan Van Berkom [Fri, 26 Nov 2010 12:26:24 +0000 (21:26 +0900)]
Finally really support rendering of cells in an unallocated context.
What this means is basically that a vertically oriented GtkCellAreaBox
will render cells properly even if the height is not constant for every
for of data in the said GtkCellAreaContext (i.e. the height was not allocated
by gtk_cell_area_context_allocate).
This is done completely on the fly and so is much more heavy duty
at render time (considerably slower but not visibly noticable in
lightweight views like GtkTreeMenu). Note that cell alignments
are not possible in an unallocated orientation, each row of data
individually receives only enough space to render the independant
row and no space is reserved for alignments if the size is not
a constant size across rows in the same context.
Tristan Van Berkom [Fri, 26 Nov 2010 04:23:01 +0000 (13:23 +0900)]
Revert "Removed tons of api that we dont absolutely need in GtkCellAreaContext:"
This reverts commit
5f7787ab2ead2cdd11ebe17b16dd9498daaaf9c5.
Andika Triwidada [Fri, 26 Nov 2010 05:08:00 +0000 (12:08 +0700)]
Updated Indonesian translation
Bastien Nocera [Thu, 25 Nov 2010 22:42:13 +0000 (22:42 +0000)]
docs: Make docs build after GtkRuler removal
Lucian Adrian Grijincu [Thu, 25 Nov 2010 23:29:50 +0000 (01:29 +0200)]
Updated Romanian translation
Lucian Adrian Grijincu [Thu, 25 Nov 2010 23:25:14 +0000 (01:25 +0200)]
Updated Romanian translation (remove windows line endings)
Spoiala Marian [Thu, 25 Nov 2010 23:24:15 +0000 (01:24 +0200)]
Updated Romanian translation
Spoiala Marian [Thu, 25 Nov 2010 23:22:40 +0000 (01:22 +0200)]
Updated Romanian translation
Cosimo Cecchi [Thu, 25 Nov 2010 16:19:00 +0000 (17:19 +0100)]
tests: fix indentation
Cosimo Cecchi [Thu, 25 Nov 2010 16:17:45 +0000 (17:17 +0100)]
app-chooser-combobox: add a method to trigger the GtkAppChooserDialog
It's an optional special item in the combobox, turned off by default.
Tristan Van Berkom [Fri, 19 Nov 2010 06:01:07 +0000 (15:01 +0900)]
Changed GtkCellRendererText to request less than wrap-width if the text is smaller than the wrap-width (or width-chars).
Tristan Van Berkom [Thu, 25 Nov 2010 08:41:26 +0000 (17:41 +0900)]
Added gtk_cell_renderer_get_aligned_area() and class vfunc.
Since a cell renderer might use more space than the natural
size when recieving expand space it's impossible to know how
much space is actually used to render content.
Adding this virtual method to allow text renderers to implement
it, the base default method uses height-for-width apis and aligns
the cell assuming the renderer uses a fixed size.
This commit removes the similar code from gtkcellarea and
subclasses.
Tristan Van Berkom [Thu, 25 Nov 2010 07:36:46 +0000 (16:36 +0900)]
Removed tons of api that we dont absolutely need in GtkCellAreaContext:
- gtk_cell_area_context_get_height_for_width()
- gtk_cell_area_context_get_width_for_height()
- gtk_cell_area_context_push_height_for_width()
- gtk_cell_area_context_push_width_for_height()
- gtk_cell_area_context_flush_height_for_width()
- gtk_cell_area_context_flush_width_for_height()
- Contextual size changed signal
All of these are not really important for the CellArea to operate
and not of any real consequential value to the user (the user can
accumulate the returned values from height-for-width requests
and do as they please with it).
Tristan Van Berkom [Thu, 25 Nov 2010 07:09:51 +0000 (16:09 +0900)]
Make GtkCellAreaBox handle rendering without a previous allocation in the orientation of choice.
This is so that treeviews can have some columns oriented vertically and
some horizontally, usually the column will only allocate the areas
width, having vertical columns without fixed row heights just means
it's slower to render.